package com.rico.kok.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Comment {
    //评论ID
    private Integer commentId;
    //一级评论postId为对应postId，二级评论postId为-1
    //内容ID
    private Integer postId;
    //如果这条评论为二级评论的话，此项值为对应一级评论ID，否则为-1
    //一级评论ID
    private Integer toCommentId;
    //评论人ID
    private Integer userId;
    //评论时间
    private String commentTime;
    //评论内容
    private String commentContent;
    //评论点赞
    private Integer commentLike;
    //是否点赞(数据库中不保存此项，此项在查询评论时进行设定)
    private Boolean commentIsLike;
    //是否删除
    private Byte isDelete;
}
